class Person:

    def __init__(self, name):
        self.name = name

    def set_name(self, name):
        self.name = name
        pass

    def get_name(self):
        return self.name

    def print_self(self):
        print(self)

    def greet(self):
        print('hello world, i am {}'.format(self.name))


foo = Person('zhoubiao')
foo.set_name('zzbb')
print(foo.get_name())
foo.greet()


# 属性 函数 和 方法
foo.print_self()
foo.name = 123456
print(foo.name)

